var mongoose = require('mongoose')
var Schema = mongoose.Schema
var EvaluationBucketSchemaConfig = {
  versionKey: false,
  typeKey: '$type'
}

var EvaluationBucketSchema = new Schema({
  user: {$type: Schema.Types.ObjectId, ref: 'User'},
  items: [{
    type: Number,
    explain: String,
    score: Number,
    status: Number
  }]
}, EvaluationBucketSchemaConfig)

exports = module.exports = EvaluationBucketSchema
